<?php
class AdEditAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->layout = 'default';
	}

	public function execute()
	{
		$adService = new BaseDbService('ad');
		$id = $this->context->get('id');
		if(is_numeric($id) && $id)
		{
			$this->data['info']	= $adService->get($id);
		}
		$this->data['id'] = $id;
		
		$this->data['menu']	= 'ad';
	}
}
